public class FrenchPhoneNumber implements PhoneNumber {

	private String phoneNumber;
	public FrenchPhoneNumber(String n)//phoneNumber este initializat cu param primit (init de catre constr)
	{
		if((n.length()==10)&&(n.indexOf("0")==0))
		{
			this.phoneNumber=n;
		}//am verificat formatu numarului
	}
	public String getPhoneNumber()
	{
		return this.phoneNumber;
	}
	public String toString()
	{
		return this.phoneNumber;
	}

}
